package com.lyc.common.task;

import com.lyc.attend.service.IAttendService;
import org.springframework.beans.factory.annotation.Autowired;

public class AttendCheckTask {

    @Autowired
    private IAttendService attendService;

    /**
     * 测试使用Quartz
     */
    public void test(){
        System.out.println("hi quartz!");
    }

    /**
     * 定时扫描数据库的缺勤记录
     */
    public void checkAttend(){
        attendService.checkAttend();
    }
}
